import os
import sys
import time
import ChoseBOW

#13	4500	4112	80	0.80625
#13	3500	2334	80	0.75625
#5	4500	1098	80	0.75
#k = sys.argv[1]
c = 13
limit = 4500

print "Only for %s" % c

for examples in range(100, 1000, 200):
    print "*" * 10
    print "Examples:", examples
    print "*" * 10
    print c, limit

    print time.asctime()

    os.popen3("Bow.py 1 %s %s %s" % (examples, c, limit))

##for count in range(3, 30, 2):
##    print "*" * 10
##    print count
##    print "*" * 10
##    for limit in range(200, 11000, 400):
##        print limit
##        bow = len(ChoseBOW.getBow(count, limit))
##        print "-", bow
##        if bow > 2100:
##            break
##        if bow > 10:
##            os.popen3("WordSeqKernelOrange.py 1 200 %s %s" % (count, limit))


wordsLimit = 3000

count = {}

for c in range(2, 30, 4):
    print c
    count[c] = ChoseBOW.getLimit(c, wordsLimit)

print count

print " START "

for examples in range(320, 1000, 150):
    print "*" * 10
    print "Examples:", examples
    print "*" * 10

    for c in count:
        limit = count[c]
        print time.asctime()
        print c, limit

        os.popen3("Bow.py 1 %s %s %s" % (examples, c, limit))